<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>

<div id="app" >
   <!--需求：vue中有个属性，如果 age > 18 ,欢迎光临，age<18  18禁，
   如果age=18 请在大人陪同下观看
   -->
    <span v-if="age > 18" >欢迎光临</span>
    <span v-if="age < 18">18禁</span>
    <span v-if="age == 18">请在大人陪同下观看</span>
</div>

<script>
    var vue = new Vue({
        el:"#app",
        data:{
            age:18
        }
    })
</script>
</body>
</html>